package com.itheima.common;

public class BaseContext {

    private static final ThreadLocal<Long> THREAD_LOCAL = new ThreadLocal();

    public static void setThreadLocal(Long id) {
        THREAD_LOCAL.set(id);
    }

    public static long getThreadLocal() {

        return THREAD_LOCAL.get();
    }
}
